package com.ruoyi.zhgd.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.common.annotation.DataColumn;
import com.ruoyi.common.annotation.DataPermission;
import com.ruoyi.zhgd.domain.NLaboratoryDevice;
import com.ruoyi.zhgd.domain.vo.NLaboratoryDeviceVo;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import com.ruoyi.zhgd.dto.DeviceTypeDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 实验室设备信息Mapper接口
 *
 * @author zyb
 * @date 2023-09-12
 */
public interface NLaboratoryDeviceMapper extends BaseMapperPlus<NLaboratoryDeviceMapper, NLaboratoryDevice, NLaboratoryDeviceVo> {

    List<Map> queryPages(String name);

    @DataPermission({
        @DataColumn(key = "deptName", value = "t2.dept_id"),
    })
    List<NLaboratoryDeviceVo> deviceList(Page page,@Param("params") Map<String, Object> params);

    List<DeviceTypeDto> typeList();

    NLaboratoryDeviceVo selectVoByIdz(String id);


}
